package com.liss.concurrency;

import lombok.Synchronized;

/**
 * @author lisensen
 * @date 2024/9/13
 */
public class _4_10Synchronized {
    public static void main(String[] args) {
        // 对Synchronized Class对象进行加锁
        synchronized (Synchronized.class) {
        }
        // 静态同步方法，对Synchronized Class对象进行加锁
        m();
    }
    public static synchronized void m() {
    }
}
